Stored Procedures [dbo].[BAEOrderSuperProductChildProductGetDefaultChildProductID]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@OrderProductIDint4
SQL Script
create procedure [dbo].[BAEOrderSuperProductChildProductGetDefaultChildProductID] @OrderProductID int as
SELECT cp.OrderSuperProductChildProductID
    FROM OrderSuperProductChildProduct AS cp
    WHERE cp.OrderProductID = @OrderProductID AND cp.DefaultForPrice = 1

GO
Uses